package com.ap.core.validation.message.rules;

import com.ap.core.message.managepayment.info.RetrieveRTPMessageInfo;
import com.ap.core.validation.message.info.MessageValidationInfo;
import com.ap.core.validation.message.info.RTPOriginalInfo;
import com.ap.core.validation.rules.AbstractValidationRule;
/**
 * User: Ranjit.Singh
 * The element <apTransactionId> should be  an existing valid ApTransactionId.
 */


public class RV0009Rule extends AbstractValidationRule<MessageValidationInfo<RetrieveRTPMessageInfo, RTPOriginalInfo>> {


	@Override
	public boolean validate(
			MessageValidationInfo<RetrieveRTPMessageInfo, RTPOriginalInfo> infoObject) {
		return infoObject.getOriginalInfo().isOrderPaymentExists();
	}



}
